package com.whxd.smarthome.api.rest.dto;

import com.whxd.smarthome.core.entity.DhDeviceChannel;

public class ChannelDto {
	private int channelId;// [int]通道号
	private String channelName;// 通道名称
	private boolean channelOnline;// [bool]是否在线
	private String channelPicUrl;// 缩略图URL

	public int getChannelId() {
		return channelId;
	}

	public void setChannelId(int channelId) {
		this.channelId = channelId;
	}

	public String getChannelName() {
		return channelName;
	}

	public void setChannelName(String channelName) {
		this.channelName = channelName;
	}

	public boolean isChannelOnline() {
		return channelOnline;
	}

	public void setChannelOnline(boolean channelOnline) {
		this.channelOnline = channelOnline;
	}

	public String getChannelPicUrl() {
		return channelPicUrl;
	}

	public void setChannelPicUrl(String channelPicUrl) {
		this.channelPicUrl = channelPicUrl;
	}

	public ChannelDto() {
		super();
	}

	public ChannelDto(DhDeviceChannel channel) {
		super();
		this.channelId = channel.getChannelId();
		this.channelName = channel.getChannelName();
		this.channelOnline = channel.isChannelOnline();
		this.channelPicUrl = channel.getChannelPicUrl();
	}
	
	

}
